<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title><?php echo $_APP->title; ?> - Backend interface</title>
		<?php $_APP->backend_load_head(); ?>
	</head>
	<body class="ptrn_a grdnt_a">
		<header>
			<div class="container head_s_a">
				<div class="row sepH_b">
					<div class="six columns">
						<div class="row">
							<div class="five phone-two columns">
								<div id="logo">
									<img src="" />
								</div>
							</div>
							<div class="seven phone-two columns">

							</div>
						</div>
					</div>
					<div class="twelve columns">
						<div class="user_box cf">
							<div class="user_avatar">
								<img src="img/user_<?php echo ($_USER->civility == 'M.' ? 'male.png' : 'female.png'); ?>" alt="" />
							</div>
							<div class="user_info user_sep">
								<p class="sepH_a">
									<strong>{{Bonjour}} <?php echo $_USER->firstname . ' ' . $_USER->name; ?></strong>
								</p>
								<span>
									<a href="index.php?page=settings" class="sep">{{Configuration}}</a>
									<a href="index.php?page=logout">{{Déconnexion}}</a>
								</span>
							</div>
							<div class="ntf_bar user_sep">
								<a title="Mises à jour" href="#ntf_tickets_panel" class="ntf_item" id="ntf_item_maj" style="background-image: url(img/ico/icSw2/32-Box-Incoming-2.png)">
									<span style="display:none" id="majscounterdisplay" class="ntf_tip ntf_tip_red"><span id="majscounter">122</span></span>
								</a>
							</div>
							<div class="ntf_bar user_sep">
								<input type="checkbox" id="online" <?php echo ($__ISONLINE == 1 ? 'checked="checked' : ''); ?> />
								<p class="clear"></p>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="twelve columns">
						<nav id="smoothmenu_h" class="ddsmoothmenu tinyNav">
							<ul class="cf">
								<li><a href="index.php?page=dashboard" class="mb_parent <?php echo ($_APP->page == 'dashboard' ? 'first_el selected' : ''); ?>">Tableau de bord</a></li>

								<li>
									<a href="javascript:void(0)" class="mb_parent <?php echo ($_GET['main'] == 'users' ? 'first_el selected' : ''); ?>">Utilisateurs</a>
									<ul style="display:none">
										<li><a href="index.php?main=users&page=users">{{Comptes utilisateurs}}</a></li>
										<li><a href="index.php?main=users&page=editusers">{{Créer un utilisateur}}</a></li>
									</ul>
								</li>

								<li>
									<a href="javascript:void(0)" class="mb_parent <?php echo ($_GET['main'] == 'cms' ? 'first_el selected' : ''); ?>">{{Publications}}</a>
									<ul style="display:none">
										<li><a href="index.php?main=cms&page=pages">Pages</a></li>
										<li><a href="index.php?main=cms&page=editpages">Créer une nouvelle page</a></li>
									</ul>
								</li>

								<li>
									<a href="index.php?page=explorer" class="mb_parent <?php echo ($_GET['page'] == 'explorer' ? 'first_el selected' : ''); ?>">{{Explorateur}}</a>
								</li>

								<!--<li><a href="index.php?page=help" class="mb_parent">Documentation</a></li>-->
								<li><a href="index.php?page=support&d=1" class="mb_parent">{{Support technique}}</a></li>
							</ul>
						</nav>
						<?php if(!$_APP->check('get','d')){ ?>
						<ul id="breadcrumbs" class="cf">
							<li>{{Vous êtes ici}} :</li>
							<?php $_APP->breadcrumb = ($_APP->page == 'settings' ? '<li><span>Configuration</span></li>' : $_APP->breadcrumb); ?>
							<?php if(!empty($_APP->breadcrumb)){ ?>
								<?php echo $_APP->breadcrumb; ?>
							<?php } ?>
						</ul>
						<?php } ?>
					</div>
				</div>
			</div>
			<!-- notifications content -->
			<div style="display:none">
				<div id="ntf_tickets_panel" style="display:none;">
					<p class="sticky-title">{{Mises à jour disponibles}}<span id="downloadstatus" style="font-size:7px; color:#058DC7; text-transform:uppercase"></span></p>
					<ul class="sticky-list maj" style="height:400px; overflow: auto">
						<li>{{Recherche en cours}}...</li>
					</ul>
				</div>
			</div>
		</header>
		<div class="container">
			<?php include __BACKEND__ . 'rooter.php'; ?>
		</div>
		<footer class="container" id="footer">
			<div class="row">
				<div class="twelve columns">
                    &copy; <?php echo date('Y'); ?> SKF
				</div>
			</div>
		</footer>


		<div class="sw_width">
			<img class="sw_full" title="switch to full width" alt="" src="img/blank.gif" />
			<img style="display:none" class="sw_fixed" title="switch to fixed width (980px)" alt="" src="img/blank.gif" />
		</div>

        <!-- / JS Libraries -->
		<?php $_APP->backend_load_jsAPI();
		$_APP->backend_load_full_third_parties($_APP->page);
		$_APP->backend_load_js_config();
		$_APP->backend_load_oldies($_APP->page);
		$_APP->backend_DOM_init($_APP->page); ?>
		<!-- / JS Libraries -->

    </body>
</html>